package com.jjsj.mall.shop.controller;


import com.jjsj.common.core.domain.AjaxResult;
import com.jjsj.mall.shop.entity.YoshopUser;
import com.jjsj.mall.shop.service.IYoshopUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/mall/jjsj")
public class JJSJUserController {

    @Autowired
    private IYoshopUserService IYoshopUserService;

    @GetMapping(value = "/all")
    public AjaxResult all() {
        return AjaxResult.success(IYoshopUserService.selectYoshopUserList(new YoshopUser()));
    }
}
